﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Spi;

public interface IMesProductService
{
    /// <summary>
    /// 查询实体
    /// </summary>
    /// <param name="objId"></param>
    /// <returns></returns>
    MesProduct QueryById(string objId);
    /// <summary>
    /// 根据产出信息滑台名称获取产出最早的产出信息
    /// </summary>
    /// <param name="equipName"></param>
    /// <returns></returns>

    MesProduct QueryByEquipName(string equipName);
    /// <summary>
    /// 更新mes_product
    /// </summary>
    /// <param name="mesProduct"></param>
    /// <returns></returns>
    int UpdateByStatus(MesProduct mesProduct);
    /// <summary>
    /// 同步产出
    /// </summary>
    /// <param name="mesProduct"></param>
    /// <returns></returns>
    int SyncMesProduct(MesProduct mesProduct);
    /// <summary>
    /// 清空产出任务和执行任务
    /// </summary>
    /// <param name="mesProduct"></param>
    /// <param name="wcsTask"></param>
    /// <param name="wcsTaskCmd"></param>
    /// <returns></returns>

    int DeleteByTask(MesProduct mesProduct, POWcsTask wcsTask, POWcsTaskCmd wcsTaskCmd);
}
